/*
数据库配置
*/
require('env2')('./.env')
const { DB_NAME, DB_USER, DB_PWD, DB_HOST, DB_PORT } = process.env

module.exports = {
  database: DB_NAME,
  username: DB_USER,
  password: DB_PWD,
  options: {
    dialect: 'mysql',
    host: DB_HOST,
    port: DB_PORT, //数据库端口号
  },
  define: {
    timestamps: true, // 默认为 true
    freezeTableName: true, //冻结表名
  }
};
